package com.second.model.dto.LAndR;

import java.io.Serializable;

/**
 * 登录和注册的结果
 */
public class LAndRResult implements Serializable {
    private String code;

    private String msg;

    private Object data;

    public LAndRResult() {
    }

    public LAndRResult(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public LAndRResult(String code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("LAndRResult{");
        sb.append("code='").append(code).append('\'');
        sb.append(", msg='").append(msg).append('\'');
        sb.append(", data=").append(data);
        sb.append('}');
        return sb.toString();
    }
}
